import 'package:lcapp/data/popover_data_entity.dart';

popoverDataEntityFromJson(PopoverDataEntity data, Map<String, dynamic> json) {
	if (json['title'] != null) {
		data.title = json['title'].toString();
	}
	if (json['content'] != null) {
		data.content = json['content'].toString();
	}
	if (json['image'] != null) {
		data.image = json['image'].toString();
	}
	if (json['link'] != null) {
		data.link = json['link'].toString();
	}
	if (json['id'] != null) {
		data.id = json['id'].toString();
	}
	return data;
}

Map<String, dynamic> popoverDataEntityToJson(PopoverDataEntity entity) {
	final Map<String, dynamic> data = new Map<String, dynamic>();
	data['title'] = entity.title;
	data['content'] = entity.content;
	data['image'] = entity.image;
	data['link'] = entity.link;
	data['id'] = entity.id;
	return data;
}